home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / utility / btoa52.zip / BTOA.DIF < prev    next >
Text File  |  1994-04-08  |  872b  |  41 lines

  1. *** btoa.c    Fri Apr 08 15:54:20 1994
  2. --- btoa_.c    Fri Apr 08 21:24:24 1994
  3. ***************
  4. *** 5,14 ****
  5. --- 5,17 ----
  6.   #include <stdio.h>
  7.   #ifdef AMIGA
  8.   #include <stdlib.h>
  9.   #include <string.h>
  10.   #endif AMIGA
  11. + #ifdef MSDOS
  12. + #include <fcntl.h>
  13. + #endif /* MSDOS */
  14.   
  15.   #include "btoa.h"
  16.   #if USE_MACROS
  17.   #include "chksum.h"
  18.   #endif USE_MACROS
  19. ***************
  20. *** 109,121 ****
  21. --- 112,130 ----
  22.       if (diagnosis)
  23.         error = producerepair(infile);
  24.       else if (repair)
  25.         error = performrepair(infile);
  26.       else if (a_to_b)
  27. +     {
  28. +       setmode(fileno(outfile), O_BINARY);
  29.         error = atob(infile);
  30. +     }
  31.       else
  32. +     {
  33. +       setmode(fileno(infile), O_BINARY);
  34.         error = btoa(infile, infilename);
  35. +     }
  36.     }
  37.   
  38.     /* Close all opened files. */
  39.     if (openinput)
  40.       fclose(infile);
  41.